package practice2;

import utils.node.Stack;

/**
 * @author Tara
 * @implNote  测试栈的实现
 */
public class Pra6 {
        public static void main(String[] args) {
        Stack<Object> stack = new Stack<>();
        System.out.println("栈是空的吗？"+stack.isEmpty());
        for (int i = 0; i < 12; i++) {
            stack.push(i);
            System.out.print(i+",");
        }
        System.out.println("栈是空的吗？"+stack.isEmpty());
        for (int i = 0; i < 12; i++) {
            System.out.print(stack.pop()+",");
        }
        System.out.println("栈是空的吗？"+stack.isEmpty());
    }

}
